#include <stdio.h>

int main() {
    // 可以证明，先用更大的钞票总是最优解
    int target; scanf("%d", &target);
    int notes[4] = { 0, 0, 0, 0 };
    int notesValue[4] = { 1, 2, 5, 10 };
    while (target > 0) {
        for (int i = sizeof(notes) / sizeof(notes[0]) - 1; i >= 0; i--) {
            if (target >= notesValue[i]) {
                notes[i]++;
                target -= notesValue[i];
                break;
            }
        }
    }
    for (int i = 0; i < sizeof(notes) / sizeof(notes[0]); i++) {
        if (notes[i]) printf("%d=%d\n", notesValue[i], notes[i]);
    }
    return 0;
}